package com.shuqing.download.engine.distribute.dispatch.monitor;

import com.shuqing.download.engine.DefaultHandler;
import com.shuqing.download.engine.constants.EventEnum;
import com.shuqing.download.engine.distribute.dispatch.TaskContext;

/**
 * @author wangshuqing
 * @date 2023/3/4 11:43
 */
public interface Event extends DefaultHandler {
    /**
     * 事件通知
     * @date 2023/3/4 11:26
     * @author wangshuqing
     * @param context
     * @param success
     * @param eventEnum
     * @param errorMsg
     * @param args
     * */
    void discover(TaskContext context, EventEnum eventEnum, Boolean success, String errorMsg,Object... args);
}
